str1 = input()
str2 = "chuanzhi"
n = str1.count(str2)
print(n)